package info.techgeek.labs.patterns.strategy.Duck2;
public class Duck implements DuckSortable {

	private String duckName;
	private int duckWeight;
	private int duckSize;

	private SortStrategy sortStrategy;

	public Duck(String s, int i, int x) {
		this.sortStrategy = new SortByNothing();
		this.duckName = s;
		this.duckWeight = i;
		this.duckSize = x;
	}

	public String toString() {
		return("Duck with name '" + this.duckName + "' has weight " + this.duckWeight + " and size " + this.duckSize + ".");
	}

	public int compareTo(Object ob) {
		return this.sortStrategy.sortingAlgorithm(this, ob);
	}

	public SortStrategy getSortStrategy() {
		return this.sortStrategy;
	}
	
	public void setSortStrategy(SortStrategy s) {
		this.sortStrategy = s;
	}
    
	public String getDuckName() {
		return this.duckName;
	}
	
	public void setDuckName(String s) {
		this.duckName = s;
	}

	public int getDuckWeight() {
		return this.duckWeight;
	}
	
	public void setDuckWeight(int i) {
		this.duckWeight = i;
	}

	public int getDuckSize() {
		return this.duckSize;
	}
	
	public void setDuckSize(int i) {
		this.duckSize = i;
	}



}